//
//  ZSWaterFlowLayout.h
//  PuBuLiu
//
//  Created by @Zs on 15/12/26.
//  Copyright © 2015年 @Zs. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZSWaterFlowLayout;
@protocol ZSWaterFlowLayoutDelegate<NSObject>
-(CGFloat)waterflowLayout:(ZSWaterFlowLayout *)waterflowLayout heightForItemAtIndexPath:(NSIndexPath *)indexPath itemWidth:(CGFloat)itemWidth;
@optional
/**
 *  返回四周间距,默认UIEdgeInsets(10,10,10,10)
 */
-(UIEdgeInsets)insetsInWaterflowLayout:(ZSWaterFlowLayout *)waterflowLayout;
/**
 *  返回最大的列数,默认是3
 */
-(int)maxColumnsInsetsInWaterflowLayout:(ZSWaterFlowLayout *)waterflowLayout;
/**
 *  返回每行的间距,默认是10
 */
-(CGFloat)rowMarginInsetsInWaterflowLayout:(ZSWaterFlowLayout *)waterflowLayout;
/**
 *  返回每列的间距,默认是10
 */
-(CGFloat)columnMarginInsetsInWaterflowLayout:(ZSWaterFlowLayout *)waterflowLayout;
@end

@interface ZSWaterFlowLayout : UICollectionViewLayout
@property (weak,nonatomic) id<ZSWaterFlowLayoutDelegate> delegate;

@end
